/*
 * Copyright 2009 Michal Trzcinka
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed
 * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the
 * specific language governing permissions and limitations under the License.
 */

YAHOO.namespace('TRZCINKA.VCARD');

(function() {
  YAHOO.TRZCINKA.VCARD.Constants = {
    //List of events that can occur in model and are propagated to the view.
    VCARD_EVENT: 'vcardEvent',
    MODEL_LOADED_EVENT: 'modelLoadedEvent',
    ITEM_SAVED_EVENT: 'itemSavedEvent',
    ITEM_REMOVED_EVENT: 'itemRemovedEvent',
    ITEM_UPDATED_EVENT: 'itemUpdatedEvent',
    ITEM_MOVED_EVENT: 'itemMovedEvent',
    STACK_MOVED_EVENT: 'stackMovedEvent',
    TOP_ITEM_SET_EVENT: 'topItemSetEvent',
    ITEMS_LINKED_EVENT: 'itemsLinkedEvent',
    ITEMS_UNLINKED_EVENT: 'itemsUnlinkedEvent',
    DIMENSIONS_CHANGED_EVENT: 'dimensionsChangedEvent',
    HIGHLIGHT_EVENT: 'highlightEvent',
    DISABLE_HIGHLIGHT_EVENT: 'disableHighlightEvent',

    MESSAGE_EVENT: 'messageEvent',

    // Editor modes.
    MODE_NORMAL: 'normal',
    MODE_LINKING: 'linking',
    MODE_DUPLICATING: 'duplicating',

    //Account types.
    ACCOUNT_TYPE_OBSERVER: 'observer',
    ACCOUNT_TYPE_OPERATOR: 'operator',
    ACCOUNT_TYPE_ADMINISTRATOR: 'administrator',

    //Other constants.
    DD_GROUP: 'ddGroup',
    TABLE_ID: 'grid_table',
    PAINT_WRAPPER_ID: 'paint_wrapper',
    MESSAGES_DIV_ID: 'messages_div'
  };
})();